﻿@using Microsoft.AspNetCore.Identity
@using BlazorOrdering.Web.Entry.Areas.Identity.Data
@inject UserManager<BlazorOrderingUser> UserManager
<AuthorizeView>
    <Authorized>
        <a href="Identity/Account/Manage">你好, @UserManager.GetUserAsync(context.User).Result.CustomName</a>
        <a href="/Logout">退出</a>
    </Authorized>
    <NotAuthorized>
        <a href="Identity/Account/Register">注册</a>
        <a href="Identity/Account/Login">登陆</a>
    </NotAuthorized>
</AuthorizeView>


